package com.blog.service;

import com.blog.dto.AddCategoryByWorksDTO;
import com.blog.dto.WorksDTO;
import com.blog.vo.CategoryVO;
import com.blog.vo.WorksVO;

import java.util.List;

public interface WorksService {
    List<WorksVO> getWorksList();

    WorksVO getOneWorks(Long wid);

    List<WorksVO> getWorksByTitle(String value);

    boolean AddWorks(WorksDTO worksDTO);

    boolean EditWorks(WorksDTO worksDTO);

    boolean DeleteWorks(Long id);

    List<WorksVO> worksByCategory(Long categoryId);

    List<WorksVO> worksByNoCategory();

    List<CategoryVO> getWorksByNoCategory(Long worksId);

    List<CategoryVO> getWorksByCategory(Long worksId);

    boolean AddCategoryByWorks(AddCategoryByWorksDTO addCategoryByWorksDTO);

    List<WorksVO> getListWorksByID(Long uid,Long isShow);

    List<WorksVO> getAllListWorksByID(Long uid);

    WorksVO getOneWorksByID(Long wid);

    List<CategoryVO> getCategoryByWorksID(Long wid);

    List<WorksVO> getWorksByIsShow(Long isShow);

    boolean EditWorksIsShow(Long worksId, Long isShow);

    Long getWorksTotal(Long uid);
}
